package com.godpaper.as9.model
{
	import com.adobe.cairngorm.CairngormError;
	import com.adobe.cairngorm.CairngormMessageCodes;
	import com.adobe.cairngorm.model.IModelLocator;
	
	import mx.collections.ArrayCollection;

	public class ClassModelLocator implements IModelLocator
	{
		// Singleton instance of ModelLocator
		private static var instance:ClassModelLocator;
		[Bindable]
		public var classInfo:ArrayCollection=new ArrayCollection();
		public function ClassModelLocator(access:Private)
		{
			if(access!=null)
			{
				if(instance == null)
				{
					instance = this;
				}
			}else
			{
				throw new CairngormError( CairngormMessageCodes.SINGLETON_EXCEPTION,"ClassModelLocator");
			}
		}
		
		/**
		 * 
		 * @return the Singleton instance of RSSReaderModelLocator
		 * 
		 */	
		 public static function getInstance():ClassModelLocator
		 {
		 	if(instance == null)
		 	{
		 		instance = new ClassModelLocator(new Private());
		 	}
		 	return instance;
		 }
	}
}
/**
 * Inner class which restricts contructor access to Private
 */
class Private 
{
	
}